<template>
	<view class="YmContent">
		<view class="info_96">
			<view class="row2">
				<text decode="true" class="info_76">学校</text>
				<text decode="true" class="mobile">广东科学职业技术学院</text>
			</view>
			<view class="info_69">
			</view>
			<view class="row2">
				<text decode="true" class="info_76">企业名</text>
				<text decode="true" class="mobile">{{enterpriseInfo.name}}</text>
			</view>
			<view class="info_74">
			</view>
			<navigator url="/pages/my/update/update">
				<view class="row4">
					<text decode="true" class="info_66">企业电话</text>
					<text decode="true" class="name">{{enterpriseInfo.linkTel}}</text>
					<image src="/static/img/my/info_68_68.jpg" mode="scaleToFill" border="0" class="info_68"></image>
				</view>
			</navigator>
			<view class="info_79">
			</view>
			<navigator url="/pages/my/update/update">
				<view class="row4">
					<text decode="true" class="info_66">企业邮箱</text>
					<text decode="true" class="name">{{enterpriseInfo.email}}</text>
					<image src="/static/img/my/info_68_68.jpg" mode="scaleToFill" border="0" class="info_68"></image>
				</view>
			</navigator>

			<view class="info_83">
			</view>
			<view class="row2">
				<text decode="true" class="info_76">负责人姓名</text>
				<text decode="true" class="mobile">{{enterpriseInfo.linkPerson}}</text>
			</view>
			<view class="info_83"></view>
			<!-- <navigator url="introduction"> -->
			<view class="row2">
				<text decode="true" class="info_76">企业简介</text>
				<text decode="true" class="mobile">{{introduction}}</text>
			</view>
			<!-- </navigator> -->
			<view class="info_83"></view>
			<!-- <navigator url="site"> -->
			<view class="row2">
				<text decode="true" class="info_76">企业网址</text>
				<text decode="true" class="mobile">{{website}}</text>
			</view>
			<!-- </navigator> -->
			<view class="info_83"></view>
			<button type="primary" @click="change">提交</button>
		</view>
	</view>
</template>
<script>
	import {
		getEnterpriseInfo
	} from "@/api/my/service.js";
	export default {
		data() {
			return {
				enterpriseInfo: null,
				entid: 0,
				introduction: "",
				website: "",
			}
		},
		onLoad(options) {
			const entid = uni.getStorageSync("ID");
			this.entid = entid;
			this.getMyData();
		},
		// created(){

		// },
		methods: {
			//错误获取
			getMyData() {
				getEnterpriseInfo(this.entid)
					.then(res => {
						this.enterpriseInfo = res.data
						console.log(this.enterpriseInfo);
						this.introduction = this.enterpriseInfo.introduction;
						this.website = this.enterpriseInfo.website;
					}).catch(res => {
						console.log(res);
					});
			},
			change() {
				uni.switchTab({
					url: '/pages/tabbars/my',
				});
			}
		}
	}
</script>
<style lang="scss" scoped>
	@import '../css/info.scss';
	button[type=primary] {
		background-color: rgba(53, 125, 197, 1);
	}
	
	button {
		color: #fff;
		width: 90%;
		border-radius: 30px;
		/* 		line-height: 2.1; */
	}
	
	button::after {
		color: #fff;
		border: 1px solid rgba(53, 125, 197, 1);
	}
</style>
